export const  convertToBase64 = function(file) {
    return new Promise((resolve, reject) => {
      const reader = new FileReader();
      reader.onload = (e) => resolve(e.target.result);
      reader.onerror = reject;
      reader.readAsDataURL(file);
    });
  }
export const copyObject =function (params) {
    return JSON.parse(JSON.stringify(params))
}